Skip to content

feat(datetimepicker): ios permitted arrow directions#663

Merged
NathanWalker merged 1 commit into
NativeScript:mainfrom
Log3n:feat/ios-permitted-arrow-direction
May 19, 2026
Merged

feat(datetimepicker): ios permitted arrow directions#663
NathanWalker merged 1 commit into
NativeScript:mainfrom
Log3n:feat/ios-permitted-arrow-direction

Conversation

@Log3n
Copy link
Copy Markdown
Contributor

@Log3n Log3n commented May 19, 2026

Description

Add iOS-specific iosPermittedArrowDirections option to datetimepicker to control the popover arrow direction when presenting the picker on iPad.

Problem

Today, the popover arrow is fixed to the center of the screen on iOS 26+ and cannot be changed. This can cause issues if the ok button text size is extra large due to accessibility options.

Solution

Expose a new iOS-only option iosPermittedArrowDirections on the shared PickerOptions interface. The value is forwarded from pickDate / pickTime into _showNativeDialog and applied to popoverPresentationController.permittedArrowDirections. When the option is not provided, behavior is unchanged (UIPopoverArrowDirection.Any). With "UIPopoverArrowDirection.Unknown" the arrow can now be hidden and result in a popup style picker in the center of the screen.

Testing

  • Tested on multiple simulators with iOS 26 and iOS 17
  • Verified default behavior (option omitted) matches previous behavior
  • Verified both pickDate and pickTime honor the option
  • TypeScript compilation passes

Platforms affected

  • iOS
  • Android

@NathanWalker NathanWalker merged commit 79fcaec into NativeScript:main May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants